import PageHeader from '@/components/PageHeader/index.vue'
import PageFooter2 from '@/components/PageFooter/pageBottom.vue'
import { mapGetters } from 'vuex'
import config from '@/global/config.js'

export default {
  data () {
    return {
      isPageBody: '',
      mixConfig: config
    }
  },
  computed: {
    ...mapGetters({
      lang: 'lang',
      langKey: 'langKey',
      mixUserInfo: 'userInfo',
      isLogin: true
    })
  },
  methods: {
    getMsgFromChild () {
      let pageBody = document.querySelector('#pageBody')
      if (!pageBody) { return }
      // pageBody.style.minHeight = 'auto'
      let windHeight = window.innerHeight
      let bodyHeight = document.body.clientHeight
      let widthSize = windHeight - bodyHeight
      if (widthSize > 0) {
        pageBody.style.minHeight = pageBody.clientHeight + widthSize + 'px'
      }
    }
  },
  components: {
    PageHeader,
    PageFooter2
  },
  created () {
  },
  mounted () {
    this.getMsgFromChild()
  }
}
